<template>
  <div class="back-top">
    <img src="~assets/images/common/top.png" alt="" />
  </div>
</template>

<script>
export default {
  props: {},
  data () {
    return {}
  },
  created () {},
  methods: {
    // TODO: 这是第一种方式
    // backTop () {
    //   // 返回到顶部,将事件传递给父组件,让父组件进行逻辑处理
    //   this.$emit('backClick')
    // }
  },
  components: {}
}
</script>

<style lang="less" scoped>
.back-top {
  position: fixed;
  right: 8px;
  bottom: 50px;

  img {
    width: 43px;
    height: 43px;
  }
}
</style>
